package com.atguigu.gmall.search.vo;

import com.atguigu.gmall.search.Goods;
import lombok.Data;

import java.util.List;

/**
 * @author lhh
 * @ClassName SearchRespVo
 * @date 2022 2022/12/12
 */
@Data
public class SearchRespVo {

    private SearchParamVo searchParamVo;

    /**
     * 品牌面包屑
     */
    private String trademarkParam;

    /**
     * 平台属性面包屑
     */
    private List<Props> propsParamList;

    /**
     * 品牌列表
     */
    private List<Trademark> trademarkList;

    /**
     * 属性列表
     */
    private List<Arrts> attrsList;

    /**
     * url参数
     */
    private String urlParam;

    /**
     * 排序
     */
    private OrderMap orderMap;

    /**
     * 商品集合; 商品数据原来是在MySQL中；需要通过上架操作给es存一份
     */
    private List<Goods> goodsList;

    /**
     * 页码
     */
    private Integer pageNo;

    /**
     * 总页码
     */
    private Long totalPages;

    @Data
    public static class Props {
        private String attrName;

        private String attrValue;

        private Long attrId;
    }

    @Data
    public static class Trademark {

        private Long tmId;

        private String tmName;

        private String tmLogoUrl;
    }

    @Data
    public static class Arrts {

        private String attrName;

        private Long attrId;

        private List<String> attrValueList;
    }

    @Data
    public static class OrderMap {

        private String type;

        private String sort;
    }

}
